﻿@using CodeCamp.Models.Shared
@model TestViewModel

@{
    @* ViewBag.RegistrationUrl set in code - SetSharedViewBagProperties *@
    ViewBag.EventName = "";
    ViewBag.Title = "";
    if ((@Model != null) && (@Model.EventDisplayName != null))
    {
        ViewBag.Title = @Html.Encode(@Model.EventDisplayName + " | Test");
        ViewBag.EventName = @Model.EventDisplayName;
    }
    else
    {
        ViewBag.Title = "Code Camp | Test";
        ViewBag.EventName = "Code Camp";
    }
}

<h2>Test</h2>

<p>@Request.Url.AbsoluteUri</p>

<p>@Html.Raw(Html.Encode(Model.TestMsg).Replace(Environment.NewLine, SharedViewModel.lineBreak))</p>
